package com.cec.vo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 资讯类
 */
@Data
public class InfoVO {
    @ApiModelProperty(value = "资讯id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "资讯分类id")
    private String infoTypeName;

    @ApiModelProperty(value = "资讯名称")
    private String infoTitle;

    @ApiModelProperty(value = "信息")
    private String info;

    @ApiModelProperty(value = "资讯内容")
    private String infoContent;

    @ApiModelProperty(value = "资讯图片")
    private String img;

    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "点击量")
    private Integer hits;

    @ApiModelProperty(value = "审核状态") // 0-不发布 1-发布
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
